<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page language="java" import="java.util.*"%>
<%@ page language="java" import="java.lang.*"%>
<%@ page language="java" import="com.limao.Tool.CacheClass"%>
<%@ page language="java" import="com.limao.servlet.WebFunction"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 

<%
 	String pc_home_1="?x-oss-process=style/"+"pc-home-1-pad"; //pc-home-1-pad pc-home-1-fill
	String pc_alllist="?x-oss-process=style/"+"pc-alllist-fill";//pc-alllist-pad pc-alllist-fill
	
    String path = request.getContextPath();
   // String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    String basePath = request.getScheme() + "://" + request.getServerName() + path + "/";
    String imgPath=CacheClass.getImgUrl();
%>
	<base href="<%=basePath%>" imgbase="<%=imgPath%>">
	<!--[if lte IE 6]></base><![endif]-->
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon" >
    <link rel="stylesheet" href="pc/css/reset.css" />
    <link rel="stylesheet" href="pc/css/all.css" />

    <script src="pc/js/jquery-3.1.1.min.js"></script>
    <script src="pc/js/jquery-1.7.1.min.js"></script>
    <script src="js/jquery.md5.js"></script>
    <script src="js/json2.js"></script>
    <script src="pc/js/layer/layer.js"></script>
     
    <script src="pc/js/common/common.js"></script>
    
    <!--[if lte IE 12]> 
    <script src="pc/js/PIE.js"></script>
   <![endif]-->
    <script src="pc/js/self.js"></script>
    
    
    <!-- dialog start -->
	<div id="tipdialog_bg" class="theme-popover-mask">
	
	</div>
	<div id="dialog" class="dialog pf w100 h100">
	    <section class="jz of bcf">
	        <div id="dialogTitle" class="dialogTittle f17 tc jz">
	            提示
	        </div>
	        <div id="dialogContent" class="content jz lh18 f14 of">
	
	        </div>
	        <div class="button w100 of clearfix">
	            <button id="tipDialogCancel" class="fl cf f17" style="width: 50%;background: #CDCDCD;">取消</button>
	            <button id="tipDialogSure" class="fl cf f17" style="width: 50%">确定</button>
	        </div>
	    </section>
	</div>
	<!-- dialog end -->
 
<c:if test="${sessionScope['userid'] != null}">
    <script type="text/javascript">
    	//已登陆
		islogin=true;
		userid=${sessionScope.userid};
		userobj=${sessionScope.userobj};
		username=userobj.username;
		
		
		
		/**
     * 提示对话框
     * @param dialog
     * @param mask
     * @param func 点击确定执行的方法
     * @param flag 标识 0 显示两个按钮 1 显示确定按钮 2 显示取消
     * @constructor
     */
     var haha = function (){
      console.log('hahahaha');
     }

    
    function showTipDialog(title, content, func, flag) {
        var dgTitle = $('#dialogTittle');
        var dgContent = $('#dialogContent');

        dgTitle.text(title);
        dgContent.text(content);

        var btnCancel = $("#tipDialogCancel");
        var btnConfirm = $("#tipDialogSure");

        btnCancel.bind("click", cancelDialog);
        btnConfirm.bind("click", func);
        
        if (flag == 1) {
            btnCancel.hide(0);
            btnConfirm.show(0);
            btnConfirm.css('width', '100%');
        } else if (flag == 2) {
            console.log(btnCancel);
            btnConfirm.hide(0);
            btnCancel.show(0);
            btnCancel.css('width', '100%');
        } else {
            btnConfirm.show(0);
            btnCancel.show(0);
            btnConfirm.css('width', '50%');
            btnCancel.css('width', '50%');
        }

        var dialog = $('#dialog');
        var mask = $('#tipdialog_bg');
        mask.fadeIn();
        dialog.slideDown();
    }
    
    

    /**
     * 关闭提示对话框
     * @constructor
     */
    var cancelDialog = function () {
        var dialog = $('#dialog');
        var mask = $('#tipdialog_bg');

        mask.fadeOut();
        dialog.slideUp();
    }
		
    </script>
</c:if>
<% 
 	String sysIspaused=WebFunction.SysIspaused();
	if(sysIspaused!=null)
	{
		out.println("<script language='JavaScript'>alert("+sysIspaused+");</script>"); 
		return ;
	}
 

%>
